﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using NLog;

namespace Zhuang.WindowsService
{
    public class CronExpressionHelper
    {

        private static Logger log;

        public static string GetAppSettings(string key)
        {
            try
            {
                string tg1 = ConfigurationManager.AppSettings[key];

                return tg1;
            }
            catch (Exception ex)
            {
                log.Error(string.Format("Get {0} Error:",key), ex);

                return "";
            }
        }
    }
}
